package com.tyc.wx.service;

import com.alibaba.fastjson.JSONObject;
import com.tyc.wx.utills.AppUtill;
import com.tyc.wx.utills.PublicUtill;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description: java类作用描述
 * @Author: tyc
 * @CreateDate: 2020/12/29 16:54
 */

public interface WxService {

    //微信小程序相关
    String getAppAccessToken();
    JSONObject getAppLoginInfo(String code);
    JSONObject getAppUserPhone(String encryptedData,String session_key, String  iv);
    Boolean sendTemplateMessageToApp(String access_token,String message);

    //微信公众号相关方法
    //配置服务器
    Boolean authenticate(String signature,String timestamp,String nonce);
    String getPubAccessYoken();
    Map<String, String> xmlToMap(HttpServletRequest request);
    String getPubH5Openid(String code);
    boolean sendTemplateMessage(String access_token,String message);
}
